# -*- coding: utf-8 -*-

"""
@Author: 芮芪懿 QQ1849433491
@Project->File: pygame_train -> 7加载其他背景音乐.py
@IDE：PyCharm 2020.1
@File: 7加载其他背景音乐.py
@Datetime: 2021/7/8 23:25
"""

import pygame
pygame.init()
pygame.mixer.init()
playerFireSound = pygame.mixer.Sound("resources/sounds/player-fire.wav")  # 玩家飞机射击音效
enemyHitedSound = pygame.mixer.Sound("resources/sounds/enemy-hited.mp3")  # 玩家飞机碰撞敌方飞机音效
playerHitedSound = pygame.mixer.Sound("resources/sounds/player-hited.mp3")  # 玩家飞机碰撞敌方飞机音效

# playerFireSound.play(-1)
# enemyHitedSound.play(-1)
playerHitedSound.play(5)
while True:
    pass

